package com.wocao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wocao.entity.Building;
import com.wocao.entity.SysDictData;
import com.wocao.entity.ZyRoom;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 房间  服务类
 *
 * @since 2023-12-03
 */
public interface ZyRoomService extends IService<ZyRoom> {

    /**
     * 根据楼栋名称，单元名称，房屋状态模糊查询所有楼栋信息
     */
    Page<ZyRoom> getRoomsByLike(Page<ZyRoom> zyRoomPage, String buildingId, String unitId, String roomStatus, String communityId);


    /**
     * 导出
     *
     * @param response response
     * @param roomIds  roomIds
     * @throws IOException IOException
     */
    void export(HttpServletResponse response, String[] roomIds) throws IOException;


    /**
     * 查询房屋楼栋和单元
     * @return
     */

    List<Building> getBuildingAndUnit();

    List<ZyRoom> getRoomsByBuildingId(String unitId);
}
